using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace BetaIto.ChaosDAV
{
    public class CfsPath
    {
        protected CfsPath()
        {
        }

        public CfsPath(string name)
        {
            if (string.IsNullOrEmpty(name))
            {
                throw new ArgumentException(null, "name");
            }
            _name = name;
        }

        protected string _name;
        protected bool _directory;
        protected long _length;
        protected DateTime _created;
        protected DateTime _modified;
        protected FileAttributes _attr;
	
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public bool Directory
        {
            get { return _directory; }
            set { _directory = value; }
        }

        public long Length
        {
            get { return _length; }
            set { _length = value; }
        }

        public DateTime CreationTime
        {
            get { return _created; }
            set { _created = value; }
        }

        public DateTime LastWriteTime
        {
            get { return _modified; }
            set { _modified = value; }
        }

        public FileAttributes Attributes
        {
            get { return _attr; }
            set { _attr = value; }
        }
    }
}
